<template>
  <div class="landing-page">
    <!-- Header: Logo and Brand Name -->
    <!-- <header class="site-header">
      <img src="https://betterhome.live/img/logo/default.svg" alt="Smart Lifestyle Trends Logo" class="brand-logo" />
      <span class="brand-name">smartlifestyletrends</span>
    </header> -->

    <div class="content-container">
      <!-- <p class="advertorial-text">Advertorial</p> -->

      <!-- Main Yellow Highlighted Headline -->
      <div class="yellow-highlight-box">
        <h1 class="main-headline">Hold Off On Paying For A New Bathroom Until You Read This</h1>
      </div>

      <!-- Requirements Section - Now all buttons directly trigger CTA -->
      <p class="section-title">If you meet one of these requirements:</p>
      <div class="selection-group requirements-group">
        <div class="checkbox-button" @click="goToCTA">
          Own Your Home
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Have A Bathroom Older Than 7 Years Old
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Live In A Qualified Zip Code
        </div>
      </div>

      <!-- Home Types Section - Now all buttons directly trigger CTA -->
      <p class="section-title">And one of the following home types:</p>
      <div class="selection-group home-types-group">
        <div class="checkbox-button" @click="goToCTA">
          Single Family
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Condominium
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Townhouse
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Manufactured
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Duplex
        </div>
        <div class="checkbox-button" @click="goToCTA">
          Triplex
        </div>
      </div>

      <p class="eligibility-text">You may be eligible to take advantage of this service!</p>

      <!-- Main Call To Action Button -->
      <button @click="goToCTA" class="cta-button red-button">Get A New Bathroom Remodel Now</button>

      <!-- Yellow Info Box -->
      <div class="info-yellow-box">
        <p>
          Did you know that the average homeowner leaves thousands of dollars of savings on the table by not
          comparing contractor quotes when remodeling their Bathroom? No matter what type of bathroom renovation
          you are looking for, <span class="bold-text-underline">you NEED to compare quotes to ensure you are getting the best price.</span>
        </p>
      </div>

      <!-- Unbelievable Savings Section -->
      <h2 class="sub-headline">Unbelievable Savings On Bathroom Remodels!</h2>
      <p class="body-text">
        Still unknown to many is this
        <!-- Brilliant Service text made clickable -->
        <span class="bold-text-underline clickable-text" @click="goToCTA">Brilliant Service</span>
        that we use to help Homeowners get their bathroom remodeled at amazing
        low prices!
      </p>
      <p class="body-text">
        You likely have had someone quote you crazy expensive prices for a new bathroom, right? This Service helps
        homeowners find a new bathroom at great low prices. They connect homeowners to numerous bathroom remodel
        contractors in their area and make them compete for their business!
      </p>
      <p class="body-text">
        So don’t wait around with your old and outdated bathroom any longer!
      </p>

      <!-- Second Call To Action Section -->
      <h3 class="secondary-cta-title">Get A New Bathroom Today!</h3>
      <p class="secondary-cta-subtitle">Quick. Simple. No Hidden Fees. No BS.</p>
      <button @click="goToCTA" class="cta-button red-button bottom-cta">Get My Quote Now</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BathroomLandingPage',
  data() {
    return {
      // 移除了 requirements 和 selectedHomeType，因为所有点击都直接跳转
    };
  },
  methods: {
    goToCTA() {
      // Replace with your actual Call To Action URL
      window.location.href = 'https://cheputyaimunting.com/click';
      // 或者，如果你使用的是 Vue Router，可以改为：
      // this.$router.push('/your-bathroom-offer');
    }
  },
  metaInfo: {
    meta: [
      {
        'http-equiv': 'delegate-ch',
        content: 'sec-ch-ua https://cheputyaimunting.com; sec-ch-ua-mobile https://cheputyaimunting.com; sec-ch-ua-arch https://cheputyaimunting.com; sec-ch-ua-model https://cheputyaimunting.com; sec-ch-ua-platform https://cheputyaimunting.com; sec-ch-ua-platform-version https://cheputyaimunting.com; sec-ch-ua-bitness https://cheputyaimunting.com; sec-ch-ua-full-version-list https://cheputyaimunting.com; sec-ch-ua-full-version https://cheputyaimunting.com'
      }
    ],
    style: [
      { type: 'text/css', cssText: '.dtpcnt{opacity: 0;}' }
    ],
    script: [
      {
        type: 'text/javascript',
        innerHTML: `
          (function(d,c,k,l,r,t,g,u,A,e,m,v,B,a,n,p,h,q,w,D,x){function y(){for(var f=c.querySelectorAll(".dtpcnt"),b=0,a=f.length;b<a;b++)f[b][u]=f[b][u].replace(/(^|\\s+)dtpcnt($|\\s+)/g,"")}function C(a,b,d,e){var f=new Date;f.setTime(f.getTime()+(e||864E5));c.cookie=a+"="+b+"; "+d+"samesite=Strict; expires="+f.toGMTString()+"; path=/";k.setItem(a,b);k.setItem(a+"-expires",f.getTime())}function z(a){var b=c.cookie.match(new RegExp("(^| )"+a+"=([^;]+)"));return b?b.pop():k.getItem(a+"-expires")&&+k.getItem(a+
"-expires")>(new Date).getTime()?k.getItem(a):null}x="https:"===d.location.protocol?"secure; ":"";d[e]||(d[e]=function(){(d[e].q=d[e].q||[]).push(arguments)},p=c[r],c[r]=function(){p&&p.apply(this,arguments);if(d[e]&&!d[e].hasOwnProperty("params")&&/loaded|interactive|complete/.test(c.readyState))for(;a=c[t][m++];)/\\/?click\\/?($|(\\/[0-9]+)?$)/.test(a.pathname)&&(a[g]="javascrip"+d.postMessage.toString().slice(4,5)+":"+e+'.l="'+a[g]+'",void 0')},setTimeout(function(){(q=/[?&]cpid(=([^&#]*)|&|#|$)/.exec(d.location.href))&&
q[2]&&(h=q[2],w=z("vl-"+h));var f=z("vl-cep"),b=location[g];if("savedCep"===B&&f&&(!h||"undefined"===typeof h)&&0>b.indexOf("cep=")){var e=-1<b.indexOf("?")?"&":"?";b+=e+f}a=c.createElement("script");n=c.scripts[0];a.defer=1;a.src=v+(-1===v.indexOf("?")?"?":"&")+"lpref="+l(c.referrer)+"&lpurl="+l(b)+"&lpt="+l(c.title)+"&vtm="+(new Date).getTime()+(w?"&uw=no":"");a[A]=function(){for(m=0;a=c[t][m++];)/dtpCallback\\.l/.test(a[g])&&(a[g]=decodeURIComponent(a[g]).match(/dtpCallback\\.l="([^"]+)/)[1]);y()};
n.parentNode.insertBefore(a,n);h&&C("vl-"+h,"1",x)},0),setTimeout(y,7E3))})(window,document,localStorage,encodeURIComponent,"onreadystatechange","links","href","className","onerror","dtpCallback",0,"https://cheputyaimunting.com/d/.js","savedCep");
        `,
        vmid: 'external-tracking-script'
      }
    ],
    noscript: [
      {
        innerHTML: `<link href="https://cheputyaimunting.com/d/.js?noscript=true&lpurl=" rel="stylesheet"/>`
      }
    ]
  },
};
</script>

<style scoped>
/* Basic Reset/Body Styles */
.landing-page {
  font-family: Arial, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  margin: 0;
  background-color: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-container {
  max-width: 800px; /* Adjust based on your desired content width */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff; /* White background for the main content area */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for the content area */
  margin-bottom: 40px; /* Space at the bottom */
}

/* Header Styles */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  background-color: #fff;
  width: 100%; /* Full width header */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Optional subtle shadow */
  margin-bottom: 20px;
}

.brand-logo {
  height: 30px; /* Adjust logo size as needed */
  margin-right: 10px;
}

.brand-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* Advertorial Text */
.advertorial-text {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

/* Yellow Highlighted Headline */
.yellow-highlight-box {
  background-color: #ffe066; /* Bright yellow */
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.main-headline {
  font-size: 1.8em;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

/* Section Titles */
.section-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Selection Buttons (Checkbox/Radio-like) */
.selection-group {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap to the next line */
  justify-content: center; /* Center items when they wrap */
  gap: 10px; /* Space between buttons */
  margin-bottom: 30px;
}

.checkbox-button {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f0f0f0;
  cursor: pointer; /* Keep cursor pointer to indicate it's clickable */
  transition: all 0.2s ease-in-out;
  font-size: 0.95em;
  color: #555;
  white-space: nowrap; /* Prevent text from wrapping inside the button */
}

.checkbox-button:hover {
  background-color: #e0e0e0; /* Still provide hover feedback */
  border-color: #aaa;
}

/* Eligibility Text */
.eligibility-text {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 30px;
}

/* Call To Action Button (Red) */
.cta-button {
  display: block; /* Make button take full width of its container */
  width: calc(100% - 40px); /* Adjust width for padding */
  max-width: 450px; /* Max width for button */
  margin: 0 auto 30px auto; /* Center button and add margin */
  padding: 18px 30px;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
  background-color: #e74c3c; /* Red color */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  text-decoration: none; /* In case it's an <a> tag later */
}

.cta-button:hover {
  background-color: #c0392b; /* Darker red on hover */
}

.cta-button.bottom-cta {
  margin-top: 20px; /* Add some space above the bottom CTA */
  margin-bottom: 0; /* No bottom margin for the last button in container */
}


/* Yellow Info Box */
.info-yellow-box {
  background-color: #ffe066; /* Yellow */
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 5px;
  text-align: left; /* Text alignment inside the box */
  font-size: 1em;
  line-height: 1.5;
}

.bold-text-underline {
  font-weight: bold;
  text-decoration: underline;
}

/* New style for the clickable "Brilliant Service" text */
.clickable-text {
  cursor: pointer; /* Show pointer cursor on hover */
  /* You could add a hover effect here if desired, e.g., color change */
  /* color: blue; */
}
.clickable-text:hover {
  color: #0056b3; /* Example hover color for a link-like feel */
}


/* Sub Headlines */
.sub-headline {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Body Text */
.body-text {
  font-size: 1em;
  line-height: 1.6;
  text-align: left; /* Align text to the left */
  margin-bottom: 15px;
}

/* Secondary CTA Section */
.secondary-cta-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 10px;
  color: #333;
}

.secondary-cta-subtitle {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .main-headline {
    font-size: 1.5em;
  }
  .section-title {
    font-size: 1.1em;
  }
  .cta-button {
    font-size: 1.1em;
    padding: 15px 20px;
    width: calc(100% - 20px); /* Smaller padding on mobile */
  }
  .checkbox-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .content-container {
    padding: 10px;
  }
  .site-header {
    padding: 15px 0;
  }
  .brand-logo {
    height: 25px;
  }
  .brand-name {
    font-size: 1em;
  }
}
</style>